<template>
  <div>
    <h1>口碑详情</h1>
    <p>口碑姓名：{{info.username}}</p>
    <p>口碑电话：{{info.phone}}</p>
  </div>
</template>

<script>
import request from "@/api/koubei.js";
export default {
  data() {
    return {
      info: {},
    };
  },
  created() {
    let myid = parseInt(this.$route.query.id);
    request.getOneKoubei({ id: myid }).then((r) => {
      console.log(r.data);
      this.info = r.data.list[0];
    });
  },
};
</script>

<style lang="scss" scoped>
 h1 {
     text-align: center;
 }
 p {
     padding: 10px 30px;
 }
</style>